package com.g8.pethospitallearnbackend.entity;

import java.io.Serializable;

public class Hospitalization implements Serializable {
    private String hosId;

    private String hosPet;

    private String hosRecord;

    private static final long serialVersionUID = 1L;

    public String getHosId() {
        return hosId;
    }

    public void setHosId(String hosId) {
        this.hosId = hosId;
    }

    public String getHosPet() {
        return hosPet;
    }

    public void setHosPet(String hosPet) {
        this.hosPet = hosPet;
    }

    public String getHosRecord() {
        return hosRecord;
    }

    public void setHosRecord(String hosRecord) {
        this.hosRecord = hosRecord;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", hosId=").append(hosId);
        sb.append(", hosPet=").append(hosPet);
        sb.append(", hosRecord=").append(hosRecord);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Hospitalization other = (Hospitalization) that;
        return (this.getHosId() == null ? other.getHosId() == null : this.getHosId().equals(other.getHosId()))
            && (this.getHosPet() == null ? other.getHosPet() == null : this.getHosPet().equals(other.getHosPet()))
            && (this.getHosRecord() == null ? other.getHosRecord() == null : this.getHosRecord().equals(other.getHosRecord()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHosId() == null) ? 0 : getHosId().hashCode());
        result = prime * result + ((getHosPet() == null) ? 0 : getHosPet().hashCode());
        result = prime * result + ((getHosRecord() == null) ? 0 : getHosRecord().hashCode());
        return result;
    }
}